package com.taijia.chapter3;

class Super {
	private int n;

	Super() {
		System.out.println("Super Class!");
	}

	Super(int n) {
		System.out.println("Super Class: " + n);
		this.n = n;
	}
}

class Sub extends Super {
	private int n;

	Sub() {
		super(400);
		System.out.println("Sub Class!");
	}

	Sub(int n) {
		// super();
		System.out.println("Sub Class: " + n);
		this.n = n;
	}
}

public class SuperSubClass {
	public static void main(String[] args) {
		Sub sub1 = new Sub(500);
		Sub sub2 = new Sub();
	}
}
